package com.danciyixue.boot.dcyx.service;

import com.danciyixue.boot.dcyx.model.entity.TestAnswers;
import com.danciyixue.boot.dcyx.model.form.TestAnswersForm;
import com.danciyixue.boot.dcyx.model.query.TestAnswersQuery;
import com.danciyixue.boot.dcyx.model.vo.TestAnswersVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 测试答案选项服务类
 *
 * @author youlaitech
 * @since 2025-06-15 16:29
 */
public interface TestAnswersService extends IService<TestAnswers> {

    /**
     *测试答案选项分页列表
     *
     * @return {@link IPage<TestAnswersVO>} 测试答案选项分页列表
     */
    IPage<TestAnswersVO> getTestAnswersPage(TestAnswersQuery queryParams);

    /**
     * 获取测试答案选项表单数据
     *
     * @param id 测试答案选项ID
     * @return 测试答案选项表单数据
     */
     TestAnswersForm getTestAnswersFormData(Long id);

    /**
     * 新增测试答案选项
     *
     * @param formData 测试答案选项表单对象
     * @return 是否新增成功
     */
    boolean saveTestAnswers(TestAnswersForm formData);

    /**
     * 修改测试答案选项
     *
     * @param id   测试答案选项ID
     * @param formData 测试答案选项表单对象
     * @return 是否修改成功
     */
    boolean updateTestAnswers(Long id, TestAnswersForm formData);

    /**
     * 删除测试答案选项
     *
     * @param ids 测试答案选项ID，多个以英文逗号(,)分割
     * @return 是否删除成功
     */
    boolean deleteTestAnswerss(String ids);

}
